<ul class="user-menu">
    <li><span><?php printf(__('Hi %s'), $currentUser['username']) ?></span></li>
    <li><?php echo $this->Html->link(__('My Account'), array('controller' => 'users', 'action' => 'setting', 'admin' => true), array('class' => 'middle')) ?></li>
<li><?php echo $this->Html->link(__('Logout'), array('controller' => 'users', 'action' => 'logout', 'admin' => false)) ?></li>
</ul>